//
//  JSONModelViewController.m
//  OCUI
//
//  Created by bus365-03 on 15/12/5.
//
//

#import "JSONModelViewController.h"
#import "PhoneParamModel.h"
#import "PhoneParamRequset.h"
#import "CreatWattiingView.h"
#import "MyLayout.h"
@interface JSONModelViewController ()
{
    CreatWattiingView *waitView;
}
@end

@implementation JSONModelViewController
-(void)loadView{
    MyLinearLayout *topLayout = [MyLinearLayout new];
    self.view=topLayout;
    topLayout.orientation=LVORIENTATION_HORZ;
    topLayout.gravity=MGRAVITY_VERT_CENTER;
    topLayout.backgroundColor=[UIColor redColor];
    topLayout.wrapContentWidth=NO;
    topLayout.wrapContentHeight=NO;
    topLayout.widthDime.equalTo(self.view.widthDime);
    
    
 
   
    
}
-(void)buttonClickSure:(id)sender{
    
}
- (void)getParams {
    waitView = [[CreatWattiingView alloc]initWithFrame:CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height -64)];
    [self.view addSubview:waitView];
    [PhoneParamRequset getRequestWithAndResult:^(NSArray *resultArray) {
        
        NSLog(@"参数值:%@",resultArray);
        [waitView removeFromSuperview];
        
    } AndFail:^(NSString *error) {
        
        [waitView removeFromSuperview];
        NSLog(@"错误:%@",error);
        
    }];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self getParams];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
